#include "duckApp.h"
#include "Moose.h"
#include "AppFactory.h"
#include "ModulesApp.h"
#include "MooseSyntax.h"

InputParameters
duckApp::validParams()
{
  InputParameters params = MooseApp::validParams();

  // Do not use legacy DirichletBC, that is, set DirichletBC default for preset = true
  params.set<bool>("use_legacy_dirichlet_bc") = false;

  return params;
}

duckApp::duckApp(InputParameters parameters) : MooseApp(parameters)
{
  duckApp::registerAll(_factory, _action_factory, _syntax);
}

duckApp::~duckApp() {}

void
duckApp::registerAll(Factory & f, ActionFactory & af, Syntax & s)
{
  ModulesApp::registerAll(f, af, s);
  Registry::registerObjectsTo(f, {"duckApp"});
  Registry::registerActionsTo(af, {"duckApp"});

  /* register custom execute flags, action syntax, etc. here */
}

void
duckApp::registerApps()
{
  registerApp(duckApp);
}

/***************************************************************************************************
 *********************** Dynamic Library Entry Points - DO NOT MODIFY ******************************
 **************************************************************************************************/
extern "C" void
duckApp__registerAll(Factory & f, ActionFactory & af, Syntax & s)
{
  duckApp::registerAll(f, af, s);
}
extern "C" void
duckApp__registerApps()
{
  duckApp::registerApps();
}
